package com.snail.springjpa.demo;

import com.snail.springjpa.config.MyConfig;
import com.snail.springjpa.entity.Teacher;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @title: SpringImportDemo
 * @Author liwenbo
 * @Date: 2021/8/25 17:04
 */
public class SpringImportDemo {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ConfigDemo.class);
        System.out.println(context.getBean(Teacher.class));
    }

}
